USE [@DATABASE]

IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Tedarikci_isDeleted]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Tedarikci] DROP CONSTRAINT [DF_Tedarikci_isDeleted]
END

USE [@DATABASE]

/****** Object:  Table [dbo].[Tedarikci]    Script Date: 02/11/2013 21:31:38 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Tedarikci]') AND type in (N'U'))
DROP TABLE [dbo].[Tedarikci]

USE [@DATABASE]

/****** Object:  Table [dbo].[Tedarikci]    Script Date: 02/11/2013 21:31:38 ******/
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[Tedarikci](
	[tID] [int] IDENTITY(1,1) NOT NULL,
	[tFirmaUnvan] [nvarchar](500) NULL,
	[Adres] [text] NULL,
	[Tel1] [nvarchar](50) NULL,
	[Tel2] [nvarchar](50) NULL,
	[Fax] [nvarchar](50) NULL,
	[Email] [nvarchar](50) NULL,
	[yetID] [int] NULL,
	[isDeleted] [bit] NULL,
 CONSTRAINT [PK_Tedarikci_1] PRIMARY KEY CLUSTERED 
(
	[tID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

ALTER TABLE [dbo].[Tedarikci] ADD  CONSTRAINT [DF_Tedarikci_isDeleted]  DEFAULT ((0)) FOR [isDeleted]